package com.nhxcz.bigdataweb.mapper;

import com.nhxcz.bigdataweb.entity.Stay;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface StayMapper {

    @Select("SELECT morning,afternoon,midnight FROM final ORDER BY sum desc limit 5")
    ArrayList<Stay> stay();
}
